<template>
    <div class="base">
        <img class="pic_class" :src="picpath">
        <div class="text_class">
            <span v-text="UserName"></span>
        </div>
    </div>
</template>

<script>
export default {
    data:function(){
        return {
            
        }
    },
    computed:{
        picpath(){
            return this.$store.state.UserPicPath
        },
        UserName(){
            return this.$store.state.UserName
        }
    }
}
</script>

<style scoped>
.base{
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    align-content: space-around;
    /* border: 1px solid red; */
}
.pic_class{
    height: 10vh;
    border-radius: 50%;
    
}
.text_class{
    text-align: center;
    padding: 1vh 1vw;
    color: white;
}
</style>
